<?php
include_once('DataBase.class.php');

class DataBaseManager
{
	public $db;
	
	public function __construct($server, $user, $password, $database){
		$this->db = new DataBase($server, $user, $password, $database);
	}
	
	public function __destruct(){
		$this->db->Close();
	}
	
    public function BeginTransaction(){
    	$this->db->BeginTransaction();
    }
    
    public function Commit(){
		$this->db->Commit();
    }
    
    public function RollBack(){
       	$this->db->RollBack();
    }
}
?>
